//
//  UserModel.m
//  Travel
//
//  Created by 吴品泽 on 15/4/11.
//  Copyright (c) 2015年 &#21556;&#21697;&#27901;. All rights reserved.
//

#import "UserModel.h"

@implementation UserModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}

- (void)getTripModel
{
    NSMutableArray *array = [NSMutableArray array];
    for (NSMutableDictionary *dics in self.trips) {
        UserTripsModel *modes = [[UserTripsModel alloc]init];
        [modes setValuesForKeysWithDictionary:dics];
        [array addObject:modes];
    }
    
    self.trips = [NSMutableArray arrayWithArray:array];
}

@end
